package com.ctshk.app.order.goods.controller;

import com.ctshk.common.annotations.OperationLogAnnotation;
import com.ctshk.common.dto.Result;
import com.ctshk.common.enums.OperationLogModel;
import com.ctshk.common.enums.OperationLogType;
import com.ctshk.rpc.order.goods.dto.ShoppingshopDTO;
import com.ctshk.rpc.order.goods.service.IShoppingShopService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ShoppingShopController
 * <p>
 *
 * </p>
 * @Author 黄利斌
 * @Date 2021/6/28 2:27 下午
 * @Version 1.0
 **/
@Api(value = "app商城管理", tags = "app商城管理")
@RestController
@RequestMapping(value = "/shopping/shop")
public class ShoppingShopController {

    @DubboReference
    private IShoppingShopService shoppingShopService;

    @ApiOperation(value = "app端商城信息查询",notes = "app端商城信息查询")
    @OperationLogAnnotation(operModul = OperationLogModel.ORDER, operType = OperationLogType.QUERY, operTitle = "app端商城信息查询", operDesc = "app端商城信息查询")
    @PostMapping("/info")
    public Result<ShoppingshopDTO> info(){
        return shoppingShopService.info();
    }
}
